package com.guli.common.to;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
 * @Author 罗俊
 * @date 2020/11/25 - 6:07 下午
 *
 */

/**
 * 锁库存的信息
 */
@Data

public class LockStockInfoTo {



    /**
     * 被锁定的 skuId
     */
    private Long skuId;

    /**
     *
     */
    private Long wareOrderTaskDetailEntityId;

    /**
     * 被锁定的 sku name
     * */
    private String skuName;

    /**
     * 该 sku 被锁定了几件
     * */
    private Integer count;

    /**
     * 该skuId所在的仓库id
     * */
    private Long wareId;

    public LockStockInfoTo(Long skuId, Long wareOrderTaskDetailEntityId, String skuName, Integer count, Long wareId) {
        this.skuId = skuId;
        this.wareOrderTaskDetailEntityId = wareOrderTaskDetailEntityId;
        this.skuName = skuName;
        this.count = count;
        this.wareId = wareId;
    }

    // json 反序列化需要无参构造器
    public LockStockInfoTo() {
    }
}
